package com.xiaojie.service;

import com.xiaojie.entity.user.User;

import java.util.List;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author yan
 * @Date 2021/5/21 9:57
 * @Version 1.0
 **/
public interface UserService {
    /**
     * @Author yan
     * @Description 查询所有用户
     * @Date 2021/5/21 10:00
     * @param
     * @return{{@link java.util.List<com.xiaojie.entity.user.User>}}
     **/
    List<User> getAll();

    /**
     * @Author yan
     * @Description 新增用户
     * @Date 2021/5/21 10:28
     * @return{{@link java.lang.Integer}}
     **/
    Integer saveUser(String name,Integer age);
}
